package com.jyh.blog.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 页面(Page)实体类
 *
 * @author jyh
 * @since 2023-03-06 20:20:23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Page implements Serializable {
    private static final long serialVersionUID = -60826927120745732L;
    /**
     * 页面id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 页面名
     */
    private String pageName;
    /**
     * 页面标签
     */
    private String pageLabel;
    /**
     * 页面封面
     */
    private String pageCover;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

}

